package com.proj.service;

import com.proj.bean.User;
import com.proj.bean.Useraddress;

import java.util.List;

public interface IUserService {

    User getUserByUsername(String name);

    User getuserById(int userid);

    List<Useraddress> getaddress(int userid);

    Useraddress getAddressById(int id);

    int add(Useraddress address);

    int edit(Useraddress address);

    int delete(int id);

    int setDefault(int id,int userid);

    int newuser(User user);

    int newpass(String password,Integer userid);

}
